<include file="./Application/Admin/View/Public/htmlheader.html" />
<include file="./Application/Admin/View/Public/header.html" />
<include file="./Application/Admin/View/Public/left.html" />

<style>
    .pagination{margin:0;}
</style>
<ol class="breadcrumb">
    <li><a href="/">后台首页</a></li>
    <li class="active">cms修改</li>
</ol>
<form action="__ROOT__/Admin/Cms/modifyNews" method="post" enctype="multipart/form-data">
    <input type="hidden" name="id" value="{$data.id}">
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>图片：</div>
        <div class="col-lg-3">
            <image src="{$data['image']}" height="100" />
            <input type="file" name="image"  class="form-control" />
        </div>
    </div>
    <br />

    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>标题：</div>
        <div class="col-lg-3"><input type="text" name="title" value="{$data['title']}" class="form-control" /></div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>摘要：</div>
        <div class="col-lg-3"><input type="text" name="description" value="{$data['description']}" class="form-control" /></div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>内容：</div>
        <div class="col-lg-6">
            <textarea name="content" style="width: 100%; height: 200px;" class="form-control">{$data.content}</textarea>
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3"></div>
        <div class="col-lg-3"><button type="submit" class="btn btn-primary">确定</button></div>
    </div>
</form>
<script>
    $("#status").val("{$category['status']}");
    $("#parentsCateogry").val("{$category['categoryId']}");
</script>
<include file="./Application/Admin/View/Public/footer.html" />